<div class="floatL leftBlock" >
    <?php if ($reviews) : ?>    
        <h3>Отзывы</h3><br />
	<?php foreach ($reviews as $review) : ?>
	    <div class="recordRow">
		<img src="<?php echo $review->getUser()->getAvatar() ?>" alt="<?php echo $review->getUser()->getProfileName(); ?>" class="floatL userPic radius5"/>
		<a href="<?php echo CHtml::normalizeUrl($this->createUrl('review/view', array('id' => $review->getId(), 'url' => $review->getDbData('url')))); ?>" class="recordTitle"><?php echo $review->title; ?></a><br />
		<?php echo CTruncate::trunc($review->content); ?>
		<br />
		<div class="clear padTop10"></div>
		<div class="rowInfo overHidden">
		    <div class="floatR">
			<?php if ($review->getCategory()) : ?>
	    		<div class="floatL margRight10"><i>Категория:</i> <a href="<?php echo $this->createUrl('/category/view', array('name' => $review->getCategory()->getDbData('name'))) ?>"><i><?php echo $review->getCategory()->getDbData('title'); ?></i></a></div>
			<?php endif; ?>
			<div class="floatL margRight10"><b class="<?php if ($review->getDbData('karma') >= 0) : ?>green<?php else : ?>red<?php endif; ?>"><i class="icon-star"></i> <?php echo $review->getDbData('karma'); ?></b></div>
			<div class="floatL">
			    <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/icons/photo_marker<?php echo ($review->getDbData('has_image') ? '' : '_unactive'); ?>.png" class="marker "/>
			    <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/icons/video_marker<?php echo ($review->getDbData('has_video') ? '' : '_unactive'); ?>.png" class="marker "/>
			    <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/icons/map_marker<?php echo ($review->getDbData('has_map') ? '' : '_unactive'); ?>.png" class="marker "/>
			</div>
		    </div>
		</div>
	    </div>
	    <hr/>
	<?php endforeach; ?>
    <?php endif; ?>
    <div class="clear"></div>
    <div class="padTop10"></div>        
</div>
<div class="rightBlock margLeft100 floatL">
    <div class="floatL firstBlock">
	<h3>Компании</h3><br />
	<?php if ($companies) : ?>
	    <?php foreach ($companies as $company) : ?>
		<div class="recordRow">
		    <img src="<?php echo $company->getLogo(); ?>" alt="<?php echo $company->getDbData('name'); ?>" class="floatL userPic radius5"/>
		    <a href="<?php echo CHtml::normalizeUrl($this->createUrl('company/view', array('url' => $company->getDbData('url'), 'id' => $company->getId()))); ?>" class="recordTitle"><?php echo $company->getDbData('title'); ?></a><br />
		    <?php echo CTruncate::trunc($company->getDbData('info')); ?>
		    <br />
		    <div class="clear padTop10"></div>
		    <div class="rowInfo overHidden">
			<div class="floatR">
			    <div class="floatL margRight10"><b class="<?php if ($company->getDbData('karma') >= 0) : ?>green<?php else : ?>red<?php endif; ?>"><i class="icon-star"></i> <?php echo $company->getDbData('karma'); ?></b></i></div>
			</div>
		    </div>
		</div>
		<hr/>
	    <?php endforeach; ?>
	<?php endif; ?>
	<div class="padTop10"></div>
    </div>
    <div class="floatL secondBlock" >
	<h3>Люди</h3><br />
	<?php if ($users) : ?>
	    <?php foreach ($users as $user) : ?>
		<div class="recordRow">
		    <img src="<?php echo $user->getAvatarThumb(); ?>" alt="<?php echo $user->getProfileName(); ?>" class="floatL userPic radius5"/>
		    <a href="<?php echo CHtml::normalizeUrl($this->createUrl('profile/view', array('id' => $user->getId()))); ?>" class="recordTitle"><?php echo $user->getProfileName(); ?></a><br />
		    <div class="rowInfo overHidden clear">
			<div class="floatL">
			    <i class="icon-fire"></i><em>Прохожий</em>
			</div>
			<div class="floatR">
			    <div class="floatL margRight10"><b class="<?php if ($user->getDbData('karma') >= 0) : ?>green<?php else : ?>red<?php endif; ?>"><i class="icon-star"></i> <?php echo $user->getDbData('karma'); ?></b></div>
			</div>
		    </div>
		</div>
		<hr/>
	    <?php endforeach; ?>
	<?php endif; ?>
	<div class="padTop10"></div>
    </div>
</div>